import React, { useState } from 'React';
import './index.css';
import Carousel from '@compa/Carousel';

const MediaList = ({ header, list }) => {
    return (
        <div className="media-board-container">
            <div className="media-board-header">
                {/* <span>更新</span> */}
                <span>{header}</span>
                <span>更多</span>
            </div>
            <div className="media-list-content">
                <Carousel list={list} type={1} />
            </div>
        </div>
    )
}

export default MediaList;